package com.hong.base.structure_type_model.bridgemodel.two;

/**
 * @Auther: csh
 * @Date: 2020/5/15 11:51
 * @Description:
 */
public class Client {
    public static void main(String[] args) {
        House house = new House();
        System.out.println("----------房地产公司是这样运行的---------");
        //先找到房地产公司
        HouseCorp houseCorp = new HouseCorp(house);
        //看我怎么挣钱
        houseCorp.makeMoney();
        System.out.println("\n");
        //山塞公司生产的产品很多，不过我只要指定产品就成了
        System.out.println("---------山塞公司是这样运行的----------");
        ShanZhaiCorp shanZhaiCorp = new ShanZhaiCorp(new Clothes());
        shanZhaiCorp.makeMoney();

    }
}
